import * as store from '@store/store'
import { configure } from 'mobx'
import { Provider } from 'mobx-react'
import * as React from 'react'
import ReactDOM from 'react-dom'
import './base/app.less'
import Index from './components/index/index'

// 不允许在动作外部修改状态
configure({ enforceActions: 'always' })

ReactDOM.render(
  <Provider {...store}>
    <Index />
  </Provider>,
  document.getElementById('app') as HTMLElement
)
